import Vuex from "vuex";
import Vue from "vue";

Vue.use(Vuex)
const actions = {
	setSetmeal(context,value){
		context.commit("SETSETMEAL",value)
	},
	// delFood(context,value){
	// 	context.commit("DELFOOD",value)
	// }
    
}
const mutations = {
	SETSETMEAL(state,value){
		// console.log("vaule "+JSON.stringify(value))
		state.setmeal = Object.assign({},value)
		// console.log("vaule "+JSON.stringify(state.setSetmeal))
	},
	// DELFOOD(state,value){
		
	// }
}
const state = {
	setmeal:{}
}

export default new Vuex.Store({
    actions,
    mutations,
    state
})